//@ts-nocheck
import { eventCenter } from 'recharts/src/util/Events';

var EventEmitter = require('events').EventEmitter;
export default class GlobalEvents {

    // let emitter = new EventEmitter();
    _events:EventEmitter;

    static get events(){
        if(!this._events){
            this._events = new EventEmitter();
        }
        if (this._events.setMaxListeners) {
            this._events.setMaxListeners(10);
        }
        return this._events;
    }
}
